<template>
  <div>
    <div class="recommend-title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="c in weekendList" :key="c.id">
        <img class="item-img" :src="c.imgUrl"/>
        <div class="item-info">
          <p class="item-title">{{c.title}}</p>
          <p class="item-desc">{{c.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: "HomeWeekend",
    data() {
      return {
      }
    },
    props: {
      weekendList : Array
    }
  }
</script>

<style lang="stylus" scoped>
  @import "~styles/mixins.styl"
  .recommend-title
    line-height .8rem
    background #eee
    margin-top .2rem
    text-indent .2rem

  .item
    margin-top .1rem
    height 2.9rem
    padding .08rem

    .item-img
      width 100%
      height 1.9rem

    .item-info
      padding .1rem

      .item-title
        line-height .54rem
        font-size .32rem
        ellipsis()

      .item-desc
        line-height .4rem
        color #ccc
        ellipsis()

      .item-button
        background #ff9300
        padding 0 0.2rem
        line-height .44rem
        margin-top .2rem
        border-radius .06rem
        color #fff


</style>
